﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LocalColorNews.aspx.cs" Inherits="NJL.Web.LocalColorNews" %>
<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="Controls/WUCHeader.ascx" TagName="WUCHeader" TagPrefix="uc1" %>
<%@ Register Src="Controls/WUCFooter.ascx" TagName="WUCFooter" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="/Styles/base1.css" />
    <script type="text/javascript" language="javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" language="javascript" src="/Scripts/jquery.KinSlideshow-1.1.js"></script>
    <script src="/Scripts/popup_layer.js" type="text/javascript"></script>
    <script type="text/javascript">
        function GetValidate() {
            document.getElementById("Validate").src = "/ValidateCode.aspx?rand=" + Math.random();
        }  
    </script>
</head>
<body>
    <%
        if (UserId == "" || UserName == "")
        {         
    %>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            //示例9，综合效果
            var t9 = new PopupLayer({ trigger: "#txtComment", popupBlk: "#blk9", closeBtn: "#close9", useOverlay: true, useFx: true,
                offsets: {
                    x: 0,
                    y: -41
                }
            });
            t9.doEffects = function (way) {
                if (way == "open") {
                    this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                        this.popupLayer.animate({
                            left: ($(document).width() - this.popupLayer.width()) / 2,
                            top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                            opacity: 0.8
                        }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                    } .binding(this));
                    document.getElementById('Login').src = '<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>';
                }
                else {
                    this.popupLayer.animate({
                        left: this.trigger.offset().left,
                        top: this.trigger.offset().top,
                        opacity: 0.1
                    }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
                }
            }
        });
    </script>
    <%
        }
    %>
    <form id="form1" runat="server">
    <uc1:WUCHeader ID="WUCHeader1" runat="server" />
    <!--主要内容-->
    <div class="clearfix w1003" id="content">
        <!--顶部推广-->
        <div class="blank cleanFlex">
        </div>
        <div>
            <!--左侧-->
            <div class="w_730 f_left" style="overflow: hidden;">
                <!--位置-->
                <div class="place02">
                    <p>
                        您现在的位置是：<a href="/">首页</a>>><span><a href="/dfts/">地方特色</a>>></span><span><a href="/<%=GetAreaNamePinYin(WEBSITE_FOCUS_CITY_CODE) %>/dfts/<%=modelLocalColor.ID %>.html"><asp:Literal
                            ID="litTitle" runat="server"></asp:Literal></a></span>>><span><%=PageValidate.SqlText(model.NEWS_TITLE,20) %></span>
                    </p>
                </div>
                <div class="blank cleanFlex">
                </div>
                <div class="box mainNew cont">
                    <!--标题-->
                    <div class="newstitle  m_top_10">
                        <h2>
                            <%if (model.NEWS_TITLE.Length > 23) Response.Write(model.NEWS_TITLE.Substring(0, 23)); else Response.Write(model.NEWS_TITLE); %></h2>
                        <p class="info">
                            <span>
                                <%=Convert.ToDateTime(model.CREATE_DATE_TIME).ToString("yyyy-MM-dd HH:mm:ss")%></span><span>来源：农家乐网</span>
                        </p>
                    </div>
                    <!--简介-->
                    <div class="introduction  m_top_10" style="width:670px;">
                        <p>
                            <%=model.NEWS_SUBJECT_TITLE %></p>
                    </div>
                    <!--图片-->
                    <div class="newscont font14 m_top_10 centeralign" style="display: <%=model.IMAGE_CODE==null?"none":"block"%>">
                        <img src="<%=GetImageUrl(model.IMAGE_CODE,"5") %>" alt="<%=model.NEWS_TITLE %>" />
                    </div>
                    <!--主要内容-->
                    <div class="newscont font14 m_top_10">
                       <%=model.NEWS_CONTECT %>
                    </div>
                    <div id="pager" runat="server" class="pageBord cleanFlex m_top_10">
                    </div>
                    <div style="margin: 10px auto; width: 300px;">
                        <!-- JiaThis Button BEGIN -->
                        <div id="jiathis_style_32x32">
                            <a class="jiathis_button_qzone"></a><a class="jiathis_button_tsina"></a><a class="jiathis_button_tqq">
                            </a><a class="jiathis_button_renren"></a><a class="jiathis_button_kaixin001"></a>
                            <a href="http://www.jiathis.com/share/" class="jiathis jiathis_txt jtico jtico_jiathis"
                                target="_blank"></a><a class="jiathis_counter_style"></a>
                        </div>
                        <script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
                        <!-- JiaThis Button END -->
                    </div>
                    <div class="blank cleanFlex">
                    </div>
                </div>
                <!--推荐阅读-->
                <div class="m_top_10 box">
                    <div class="titleLocal">
                        <h2>
                            相关阅读</h2>
                    </div>
                    <div class="cont">
                        <div class="f_left" style="width: 100%;">
                            <ul class="arrowList02">
                                <%
                                    for (int i = 0; i < LIST_SYS_NEWS.Count; i++)
                                    {
                                %>
                                <li><span>[<%=LIST_SYS_NEWS[i].CREATE_DATE_TIME.Value.ToString("yyyy-MM-dd HH:mm:ss")%>]</span>
                                    <a target="_blank" title="<%=LIST_SYS_NEWS[i].NEWS_TITLE %>" href="/<%=GetAreaNamePinYin(WEBSITE_FOCUS_CITY_CODE) %>/dfts/news-<%=LIST_SYS_NEWS[i].ID %>.html">
                                        <%if (LIST_SYS_NEWS[i].NEWS_TITLE.Length > 32) Response.Write(LIST_SYS_NEWS[i].NEWS_TITLE.Substring(0, 32) + "..."); else Response.Write(LIST_SYS_NEWS[i].NEWS_TITLE); %></a></li>
                                <% 
                                    }
                                %>
                            </ul>
                        </div>
                    </div>
                    <div class="cleanFlex">
                    </div>
                </div>
            </div>
            <!--右侧-->
            <div class="width_260 f_right" style="overflow: hidden;">
                <div class="box cont">
                    <dl class="imglist">
                        <dt><a href="/<%=GetAreaNamePinYin(WEBSITE_FOCUS_CITY_CODE) %>/dfts/<%=modelLocalColor.ID %>.html"
                            target="_blank">
                            <img src="<%=modelLocalColor.IMAGE_CODE!=null?GetImageUrl(modelLocalColor.IMAGE_CODE,"C1"):"/Images/nopic.jpg" %>"
                                width="220" height="165" alt="<%=modelLocalColor.NEWS_TITLE%>" class="picBor" title="<%=modelLocalColor.NEWS_TITLE%>" /></a>
                        </dt>
                        <dd class="m_top_10 centeralign cleanFlex">
                            <strong ><a href="/<%=GetAreaNamePinYin(WEBSITE_FOCUS_CITY_CODE) %>/dfts/<%=modelLocalColor.ID %>.html" class="orange"
                                target="_blank" title="<%=modelLocalColor.NEWS_TITLE %>">
                                <%=modelLocalColor.NEWS_TITLE.Length > 15 ? modelLocalColor.NEWS_TITLE.Substring(0, 15) : modelLocalColor.NEWS_TITLE%></a></strong>
                        </dd>
                        <dd>
                            <%=modelLocalColor.NEWS_SUBJECT_TITLE %>
                        </dd>
                    </dl>
                </div>
                <div class="blank">
                </div>
                <div class="box">
                    <div class="titlearrow">
                        <h2>
                            <strong>同类地方特色</strong></h2>
                    </div>
                    <div class="cont">
                        <asp:Repeater ID="rptdfts" runat="server">
                            <ItemTemplate>
                                <dl class="imglist" style="min-height: 72px; height: 100%">
                                    <dt><a target="_blank" title="<%#Eval("NEWS_TITLE") %>" href="/<%#GetAreaNamePinYin(Eval("AREA_CODE").ToString()) %>/dfts/<%#Eval("ID") %>.html">
                                        <img alt="<%#Eval("NEWS_TITLE") %>" src="<%#GetImageUrl(Eval("IMAGE_CODE").ToString(),"2") %>"
                                            class="picBor" width="93px" height="69px" /></a></dt>
                                    <dd>
                                        <strong><a target="_blank" title="<%#Eval("NEWS_TITLE") %>" href="/<%#GetAreaNamePinYin(Eval("AREA_CODE").ToString()) %>/dfts/<%#Eval("ID") %>.html">
                                            <%#PageValidate.SqlText(Eval("NEWS_TITLE").ToString(), 9)%></a></strong></dd>
                                    <dd>
                                        <%#PageValidate.SqlText(Eval("NEWS_SUBJECT_TITLE").ToString(), 26)%></dd>
                                </dl>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="blank cleanFlex">
    </div>
    <div id="blk9" class="blk">
        <div class="popup_title">
            <span class="f_right"><a href="javascript:void(0)" id="close9">关闭</a></span>
            <ul>
                <li class="now"><a href="<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>"
                    target="main">登录</a> </li>
            </ul>
        </div>
        <div>
            <iframe id="Login" name="main" width="500" height="420" style="overflow: hidden;
                border: none;"></iframe>
        </div>
    </div>
    <uc2:WUCFooter ID="WUCFooter1" runat="server" />
    </form>
</body>
</html>
